﻿using Yunzuan.Common;
using Yunzuan.Foundation.Web;

namespace Yunzuan.Common
{
    public class SearchFiltersUrl
    {
        public string searchFiltersUrl = "";
        public SearchFiltersUrl(int type = GoodsType.Diamond) 
        {
            if (searchFiltersUrl == "")
            {
                switch (type)
                {
                    case GoodsType.Diamond:  //裸钻
                        searchFiltersUrl = GlobalConfig.ParcelsUrl;
                        break;
                    case GoodsType.Parcel:  //统包
                        searchFiltersUrl = GlobalConfig.TransmissionParcelsSearchUrl;
                        break;
                    case GoodsType.Ring:  //成品
                        searchFiltersUrl = GlobalConfig.TransmissionInlaysSearchUrl;
                        break;
                    case GoodsType.Gem:  //彩宝
                        searchFiltersUrl = GlobalConfig.TransmissionGemSearchUrl;
                        break; 
                    case GoodsType.Emerald:  //翡翠
                        searchFiltersUrl = GlobalConfig.TransmissionEmeraldSearchUrl;
                        break;
                    case GoodsType.PrimeGolds:  //素金
                        searchFiltersUrl = GlobalConfig.TransmissionPrimeGoldsSearchUrl;
                        break;
                    
                }
            }
        }

    }
}